 package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;

 import javax.validation.constraints.NotBlank;
 import javax.validation.constraints.NotNull;
 import java.io.Serializable;

 /**
  *  @author lyw
  *  @date 2019/07/24
  */
 public class PageModel implements Serializable {

     @NotBlank(message = "imageName字段不能为空!")
	 private String imageName;

     @NotNull(message = "pageCode字段不能为空!")
	 private Integer pageCode;

     @NotBlank(message = "path字段不能为空!")
	 private String path;

     public String getImageName() {
         return imageName;
     }

     public void setImageName(String imageName) {
         this.imageName = imageName;
     }

     public Integer getPageCode() {
         return pageCode;
     }

     public void setPageCode(Integer pageCode) {
         this.pageCode = pageCode;
     }

     public String getPath() {
         return path;
     }

     public void setPath(String path) {
         this.path = path;
     }

     @Override
     public boolean equals(Object o) {
         if (this == o) {
             return true;
         }

         if (o == null || getClass() != o.getClass()) {
             return false;
         }

         PageModel pageModel = (PageModel) o;

         return new EqualsBuilder()
                 .append(imageName, pageModel.imageName)
                 .append(pageCode, pageModel.pageCode)
                 .append(path, pageModel.path)
                 .isEquals();
     }

     @Override
     public int hashCode() {
         return new HashCodeBuilder(17, 37)
                 .append(imageName)
                 .append(pageCode)
                 .append(path)
                 .toHashCode();
     }

     @Override
     public String toString() {
         return "PageModel{" +
                 "imageName='" + imageName + '\'' +
                 ", pageCode=" + pageCode +
                 ", path='" + path + '\'' +
                 '}';
     }
 }
